package bd.com.escenic.flexilunch.service;

/**
 * $URL: http://flexilunch.googlecode.com/svn/trunk/common/src/main/java/bd/com/escenic/flexilunch/service/Service.java $
 * $Id: Service.java 12 2009-05-21 07:41:02Z shihab.uddin@gmail.com $
 * $Date: 2009-05-21 07:41:02 +0000 (Thu, 21 May 2009) $
 * $Author: shihab.uddin@gmail.com $
 * $Revision: 12 $
 */

import bd.com.escenic.flexilunch.model.Entity;

import java.util.List;

/**
 * $Id: Service.java 12 2009-05-21 07:41:02Z shihab.uddin@gmail.com $.
 *
 * @author <a href="mailto:shihab.uddin@gmail.com">Shihab Uddin</a>
 * @version $Revision: 12 $
 */
public interface Service<T extends Entity> {

  T getEntity(int pId);

  T getEntity(String pName);

  List<T> getEntities();

  List<Integer> getEntityIds();

  boolean createEntity(T pEntity);

  boolean updateEntity(T pEntity);

  boolean deleteEntity(int pId);
}
